home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_11 / allison / tform.cpp < prev    next >
C/C++ Source or Header  |  1994-09-05  |  458b  |  31 lines

  1. LISTING 15 - Shows the effect of virtual destructors
  2. // tform.cpp:   Create/delete some display fields
  3.  
  4. #include "form.h"
  5. #include "cell.h"
  6. #include "column.h"
  7. #include "table.h"
  8. #include "popmenu.h"
  9.  
  10. main()
  11. {
  12.     Form f;
  13.     f.add(new Cell);
  14.     f.add(new Column);
  15.     f.add(new Table);
  16.     f.add(new Popmenu);
  17.     return 0;
  18. }
  19.  
  20. /* Output:
  21. ~Cell()
  22. ~Field()
  23. ~Column()
  24. ~Field()
  25. ~Table()
  26. ~Field()
  27. ~Popmenu()
  28. ~Column()
  29. ~Field()
  30. */
  31.